<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> 公共资源 </title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="../A_CommonRes/img/favicon.ico">
    <link href="../A_CommonRes/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../A_CommonRes/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../A_CommonRes/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="../A_CommonRes/css/animate.css" rel="stylesheet">
    <link href="../A_CommonRes/css/style.css?v=4.1.0" rel="stylesheet">
	<script src="../A_CommonRes/js/jquery.min.js?v=2.1.4"></script>

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <!-- 导航栏 -->
        <div th:fragment="common_header_back" class="col-sm-2" style='position:fixed; right:1px;'>
            <div class="ibox float-e-margins">
                <div class="ibox" style='margin-bottom:1px; padding-left:5px; background:#f7edbd; ' >
                    <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                    <span style='font-size:20px; color:#fc6b6b; ' >&nbsp;admin</span>

                    <div style='width:100%; text-align:right; padding-right:7px; ' >
                        <i class="fa fa-edit" alt="修改密码" style='padding-right:3px; cursor:pointer; ' ></i>
                        <i class="fa fa-sign-out" style=' cursor:pointer; ' onclick="logout()" ></i>
                    </div>
                </div>

                <div class="ibox-content">
                    <ul class="todo-list m-t small-list ui-sortable" style='margin-top:0px; ' >

                        <li id='realTimeMonitoring' style='cursor:pointer;  ' onclick='idUrl1.click()'>
                            <a id='idUrl1'  href='../X_RealTimeMonitoring/realTimeMonitoring.html' class="check-link"><i class="fa fa-tv"></i> </a>
                            <span class="m-l-xs">首页</span>

                        </li>
                        <li id='userManagement'  style='cursor:pointer; ' onclick='idUrl2.click()'>
                            <a id='idUrl2' href='../X_UserManagement/userManagement.html' class="check-link"><i class="fa fa-users"></i> </a>
                            <span class="m-l-xs">用户管理</span>

                        </li>
                        <li  id='dataManagement' style='cursor:pointer; ' onclick='idUrl3.click()'>
                            <a id='idUrl3'  href='../X_DataManagement/dataManagement.html' class="check-link"><i class="fa fa-archive"></i> </a>
                            <span class="m-l-xs">资源管理</span>
                        </li>
                        <li style='cursor:pointer; ' >
                            <a  class="check-link"><i class="fa fa-gear"></i> </a>
                            <span class="m-l-xs">系统设置</span>
                        </li>
                        <li id='common' style='cursor:pointer; ' >
                            <a   class="check-link"><i class="fa fa-calendar-minus-o"></i> </a>
                            <span class="m-l-xs">系统日志</span>
                        </li>
                    </ul>
                </div>
            </div>
			<script>
                function logout(){
                    $.ajax({
                        url: "../X_Login/logout",
                        type: 'POST',
                        cache: false,
                        dataType:'json',
                        contentType: "application/json;charset=utf-8",
                        data: '',
                        success: function (data) {
                            if(data.result=='true')
                                location.reload();
                        },
                        error : function(){
                            alert('服务器连接异常');
                            //location.reload();
                        }
                    });
                }
				$(function(){
				var url = ''+window.location;
				url = url.split('/');
				var temp = url[url.length-1];
				temp = temp.split('.')[0];
				console.log(temp);
				$('#'+temp).css('background', 'red');
				//alert(url[url.length-1]);
				});
				
			</script>
        </div>
		

        <!-- 模块内容 -->


    </div>
</div>







</body>

</html>
